package cn.iocoder.yudao.module.pypm.dal.mysql.projectmember;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.pypm.dal.dataobject.projectmember.ProjectMemberDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.pypm.controller.admin.projectmember.vo.*;

/**
 * 项目成员中间 Mapper
 *
 * @author 钦州码头
 */
@Mapper
public interface ProjectMemberMapper extends BaseMapperX<ProjectMemberDO> {

    default PageResult<ProjectMemberDO> selectPage(ProjectMemberPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ProjectMemberDO>()
                .betweenIfPresent(ProjectMemberDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(ProjectMemberDO::getId));
    }

}